var path =require('path');
var newpath=path.resolve("./sdf",'//sdf.txt');
var dirname=path.dirname(newpath)
console.log(newpath,dirname);

var child_process=require('child_process');
var exec=child_process.exec;
exec('help',function (err,sdout,stderr) {
	// body...
	console.log(err)
})